package com.ciaojian.core.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.ciaojian.core.enums.business.HairServiceTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 剪发服务
 * </p>
 *
 * @author Atlakyn
 * @since 2021-03-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("d_haircut_service")
public class HaircutService extends Model<HaircutService> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 服务名
     */
    private String title;

    /**
     * 服务价格
     */
    private BigDecimal price;

    /**
     * 店长价格
     */
    private BigDecimal money;

    @ApiModelProperty("服务类型")
    private HairServiceTypeEnum type;

    /**
     * 是否立即推出0是-1否
     */
    private Boolean nowIntroduction;

    /**
     * 服务推出时间(展示时间)
     */
    private Date showTime;

    /**
     * 服务描述
     */
    private String msg;

    /**
     * 是否上架 0未上架-1已上架
     */
    private Integer state;

    /**
     * 是否删除
     */
    private Boolean remove;

    /**
     * 字母-大写
     */
    private String letter;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 修改时间
     */
    private LocalDateTime updateTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
